package com.bonshotels.DomainLayer.Stubs;

import java.util.Date;
import java.util.Random;

import com.bonshotels.Excepcions.ServeiNoDisponible;

public class ServeiAutoritzacioCredit {
	
	public void pagament(String numTarj, Date dCad, float preuTotal, Date avui) throws ServeiNoDisponible {
		Random rndGen = new Random();
		if (rndGen.nextFloat() > 0.95) {
			throw new ServeiNoDisponible();
		}
			
	}
}
